home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk10.zip / LARGE.BAT < prev    next >
DOS Batch File  |  1991-10-05  |  4KB  |  128 lines

  1. echo off
  2. rem  batch file to make large model mawk  (bmawk.exe "big mawk")
  3. rem  with a dos (not unix) command line
  4. rem  using TurboC++ (should work with any Borland C)
  5. rem   
  6. rem   change LIB on the tlink command
  7. rem   to the appropriate directory on your system
  8. rem
  9.  
  10. echo copy  config\tcc_dos.h  config.h
  11. copy  config\tcc_dos.h  config.h
  12.  
  13. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O parse.c
  14. if errorlevel 1 goto ERR
  15.  
  16. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O array.c
  17. if errorlevel 1 goto ERR
  18.  
  19. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O bi_funct.c
  20. if errorlevel 1 goto ERR
  21.  
  22. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O bi_vars.c
  23. if errorlevel 1 goto ERR
  24.  
  25. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O cast.c
  26. if errorlevel 1 goto ERR
  27.  
  28. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O code.c
  29. if errorlevel 1 goto ERR
  30.  
  31. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O da.c
  32. if errorlevel 1 goto ERR
  33.  
  34. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O error.c
  35. if errorlevel 1 goto ERR
  36.  
  37. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O execute.c
  38. if errorlevel 1 goto ERR
  39.  
  40. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O fcall.c
  41. if errorlevel 1 goto ERR
  42.  
  43. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O field.c
  44. if errorlevel 1 goto ERR
  45.  
  46. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O files.c
  47. if errorlevel 1 goto ERR
  48.  
  49. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O fin.c
  50. if errorlevel 1 goto ERR
  51.  
  52. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O hash.c
  53. if errorlevel 1 goto ERR
  54.  
  55. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O init.c
  56. if errorlevel 1 goto ERR
  57.  
  58. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O jmp.c
  59. if errorlevel 1 goto ERR
  60.  
  61. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O kw.c
  62. if errorlevel 1 goto ERR
  63.  
  64. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O main.c
  65. if errorlevel 1 goto ERR
  66.  
  67. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O matherr.c
  68. if errorlevel 1 goto ERR
  69.  
  70. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O memory.c
  71. if errorlevel 1 goto ERR
  72.  
  73. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O print.c
  74. if errorlevel 1 goto ERR
  75.  
  76. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O re_cmpl.c
  77. if errorlevel 1 goto ERR
  78.  
  79. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O scan.c
  80. if errorlevel 1 goto ERR
  81.  
  82. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O scancode.c
  83. if errorlevel 1 goto ERR
  84.  
  85. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O split.c
  86. if errorlevel 1 goto ERR
  87.  
  88. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O zmalloc.c
  89. if errorlevel 1 goto ERR
  90.  
  91. tcc -c -ml -f -K -d -G -v- -DHAVE_SMALL_MEMORY=0 -O version.c
  92. if errorlevel 1 goto ERR
  93.  
  94. tcc -c -ml -f -K -d -G -v- -O -DMAWK -DLMDOS -Irexp rexp\rexp.c
  95. if errorlevel 1 goto ERR
  96.  
  97. tcc -c -ml -f -K -d -G -v- -O -DMAWK -DLMDOS -Irexp rexp\rexp0.c
  98. if errorlevel 1 goto ERR
  99.  
  100. tcc -c -ml -f -K -d -G -v- -O -DMAWK -DLMDOS -Irexp rexp\rexp1.c
  101. if errorlevel 1 goto ERR
  102.  
  103. tcc -c -ml -f -K -d -G -v- -O -DMAWK -DLMDOS -Irexp rexp\rexp2.c
  104. if errorlevel 1 goto ERR
  105.  
  106. tcc -c -ml -f -K -d -G -v- -O -DMAWK -DLMDOS -Irexp rexp\rexp3.c
  107. if errorlevel 1 goto ERR
  108.  
  109. tcc -c -ml -f -K -d -G -v- -O -DMAWK -DLMDOS -Irexp rexp\rexpdb.c
  110. if errorlevel 1 goto ERR
  111.  
  112. tlink /c/x \LIB\c0l \LIB\wildargs @msdos\OBJS_TCC.LNK,bmawk,,\LIB\emu \LIB\mathl \LIB\cl
  113. if errorlevel 1 goto LINKERR
  114. echo  If you want to test bmawk.exe, then
  115. echo  copy all files in msdos\dostest to mawk\test
  116. echo  copy bmawk.exe to mawk\test\mawk.exe
  117. echo  and run mawk_tes.bat and fpe_test.bat
  118. goto done
  119.  
  120. :ERR
  121. echo  compile error
  122. goto done
  123.  
  124. :LINKERR
  125. echo  link  error
  126.  
  127. :done
  128.